package com.ccn.crm.service.impl;

import com.ccn.crm.mapper.equipmentMapper;
import com.ccn.crm.model.equipment;
import com.ccn.crm.service.IEquipment;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EquipmentServiceImpl implements IEquipment {

    @Autowired
    private equipmentMapper equipmentMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return equipmentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(equipment record) {
        return equipmentMapper.insert(record);
    }

    @Override
    public equipment selectByPrimaryKey(Integer id) {
        return equipmentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<equipment> selectAll() {
        return equipmentMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(equipment record) {
        return equipmentMapper.updateByPrimaryKey(record);
    }
}
